package cn.hjk;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import org.hsqldb.jdbcDriver;

import com.sun.xml.internal.ws.handler.HandlerException;


/**
 * @author Administrator
 *
 */
public class HanAction {

	public void fun() {
		System.out.println("hanjiankai");
	}

	
	/**
	 * Administrator
	 * @param args
	 * @param a 
	 * @param b
	 * @param c
	 * @throws Exception
	 * 上午09:25:47
	 * main
	 */
	public static void main(String[] args) throws Exception {
		
		try {
			Date date = new Date(2013,2,5);
			List list = new ArrayList();
			list.add("11");
			list.add(1);
			list.add(date);
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			Calendar calendar =Calendar.getInstance();
			calendar.setTimeInMillis(date.getTime());
			System.out.println(calendar.get(Calendar.YEAR));
			System.out.println(calendar.get(Calendar.MONTH));
			System.out.println(calendar.get(Calendar.DAY_OF_MONTH));
			calendar.set(Calendar.HOUR,23);
			calendar.set(Calendar.MINUTE, 59);
			calendar.set(Calendar.SECOND, 59);
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			System.out.println(calendar.getTime());
			
			
			
		}catch (Exception e1) {
			// TODO: handle exception
			throw new HandlerException(null, args);
		}
		finally{
			System.out.println("finally");
		}
	}
}
